package hcn.protocol.ods.casehistory;/**
 * @Auther: Administrator
 * @Date: 2019/7/22 14:23
 * @Description:
 */

import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

/**
 * @program: 20190427StandardEdition
 *
 * @description: 病历复印支付方式
 *
 * @author: zhusm@bsoft.com.cn
 *
 * @create: 2019-07-22 14:23
 **/
@NoArgsConstructor
@AllArgsConstructor
public enum BLPayMode {
    ONLINEPAYMENTS(0,"在线支付"),CASHONDELIVERY(1,"到付");

    private int code;
    private String description;

    public static final BLPayMode getDescription(int code){
        for (BLPayMode type : BLPayMode.values()){
            if (type.getCode() == code){
                return type;
            }
        }
        return null;
    }

    public int getCode() {
        return code;
    }

    public String getDescription() {
        return description;
    }
}
